<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <a href="test03-do.html">测试</a>

    <script>
        let user = {
            username:'zs' ,
            age:18,
            sex:'男'
        }
        // 设置数据到本地存储中，以便传递数据到另一个页面 
        sessionStorage.setItem("username",JSON.stringify(user)) ;

    </script>
</body>
</html>